package com.cgs.springboottes2secrity.web;

import com.cgs.springboottes2secrity.entity.User;
import com.cgs.springboottes2secrity.repository.UserRepository;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @author cgs
 * @version woNiu 98
 * @date 2023/5/10 14:31
 */
@Controller
@RequestMapping("user")
public class UserController {
    @RequestMapping("login")
    public String login(){
        return "login";
    }
    /*@PostMapping("toLogin")
    public String toLogin(String account,String pwd){
        User user1 = ur.getByAccount(account);
        if (user1 != null){
            return "index";
        }
        return "login";
    }*/
}
